# Windows PowerShell部署脚本
param (
    [string]$RaspberryPiIP = "192.168.31.236",
    [string]$RaspberryPiUser = "ubuntu"
)

# 同步代码到树莓派
$remotePath = "/home/$RaspberryPiUser/fusion_ws"
$localPath = "remote/fusion_ws/*"

Write-Host "Deploying to Raspberry Pi..."
scp -r $localPath "${RaspberryPiUser}@${RaspberryPiIP}:$remotePath"

# 远程编译
ssh "${RaspberryPiUser}@${RaspberryPiIP}" "cd ~/fusion_ws && colcon build"